package buildcase;

/**
 * @Auther: Administrator
 * @Date: 2018/8/22 17:50
 * @Description:
 * 步骤3： **创建具体的建造者（ConcreteBuilder）:装机人员
 */
public class ConcreteBuilder extends Builder{

    /**创建产品实例*/
    Computer computer = new Computer();

    @Override
    public void buildCPU() {
        computer.add("组装CPU");
    }

    @Override
    public void buildMainboard() {
        computer.add("组装主板");
    }

    @Override
    public void buildHD() {
        computer.add("组装键盘");
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
